<?php
class AdvertisingModel extends Eloquent {
    protected $table = 'advertising';
    protected $hidden = array();
    protected $appends = array('image_url');
    public function getImageUrlAttribute($value){
        $value = $this->image;
        if(empty($value)) return '';
        $baseUrl = '';
        return $baseUrl.$value;
    }
}
